import request from '@/utils/request'

//获取商品详情
export function getDetail(id){
    return request({
        url:'/goods',
        params:{
            id
        }
    })
}
//获取热榜
export const getHotGoodsAPI = ({ id, type, limit = 3 }) => {
    return request({
      url:'/goods/hot',
      params:{
        id, 
        type, 
        limit
      }
    })
  }